﻿@model GTA.ePupa.Supernova.Web.Mvc.Models.ViewMessage

@{
    ViewBag.Title = String.Format("{0} - {1}",
        Html.String(Model.Title),
        Html.String("SystemWeb_CommonString_SiteName"));
}
<div id="messageContainer">
<div class="message">
<h3>@Html.MvcString(Model.Title)</h3>
<div class="icon">
<img src="@Url.Content(String.Format("~/images/msg/{0}.png", Model.Icon.ToString().ToLower()))" alt="" />
</div>
<div class="body">
<span class="text">
@Html.MvcString(Model.Message)
</span>
<div class="urls">
<ul>
    @foreach (var url in Model.Urls)
    {
        if (url.Type == JumpType.Route)
        {
            <li>@Html.RouteLink(Html.String(url.Text), url.Value)</li>
        }
        else
        {
            <li>@Html.Raw(String.Format("<a href=\"{0}\">{1}</a>", url.Value, Html.String(url.Text)))</li>
        }
    }
</ul>
</div>
<div class="clear"></div>
</div>
</div>
</div>

